import { dataserviceAxios, dataQueryAxios } from '@/utils/request'

// 图谱节点列表
export const reqMapList_nodes = (params: any): Promise<any> => {
  return dataserviceAxios({
    url: `/api/datashop/v3/industry-maps/${params.id}/nodes`,
    method: 'get',
    params
  })
}

//产业链查询
export const IndustryChainList = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies/search`,
    method: 'post',
    data
  })
}
//产业链选择导出
export const Industryexports = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies:export`,
    method: 'post',
    data
  })
}
//产业链导出全部
export const Industryexportsall = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/companies:export-all`,
    method: 'post',
    data
  })
}

//产业链导收藏
export const Industrcollect = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/favorites/companies`,
    method: 'post',
    data
  })
}
//产业链导取消收藏
export const Industrdeletecollect = (id: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/favorites/companies/${id}`,
    method: 'delete'
  })
}
